/*
CHANGE LOG:
100913-BD	made p param in editorSide dynamic so it can be black on the navbanners page
100918-BD	added pastecode to plugins, and to buttons on editorSide, and removed numbered list from side
*/

// Used for timestamp to bypass caching
var tid = new Date();

// Standard Text area
tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	editor_selector : "editorMain",
	plugins : "style,table,save,advimage,advlink,iespell,inlinepopups,media,contextmenu,paste,fullscreen,noneditable,xhtmlxtras,template,advlist,wordcount,pastecode,cleanhtml" + ((dbL["prostyletog"])?",imagemanager,filemanager":""),
	imagemanager_handle: 'image', 
	filemanager_handle: 'file,media',
	filemanager_insert_template : function(fo, enc) { return FileHTMLGet(fo, enc); },
	content_css : "/lib/tinymce/init/CSS.asp?p=" + dbL["page"] + "&tid=" + tid.getTime()
});

// Side Text Area
tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	editor_selector : "editorSide",
	plugins : "advlink,table,media,inlinepopups,contextmenu,noneditable,xhtmlxtras,wordcount,advlist,pastecode,cleanhtml" + ((dbL["prostyletog"])?",imagemanager,filemanager":""),
	imagemanager_handle: 'image', 
	filemanager_handle: 'file,media',
	filemanager_insert_template : function(fo, enc) { return FileHTMLGet(fo, enc); },

	// Theme options
	theme_advanced_buttons1 : "bold,italic,underline,justifyleft,justifycenter,justifyright,forecolor",
	theme_advanced_buttons2 : "fontselect,fontsizeselect",
	theme_advanced_buttons3 : "bullist,link,hr,|,table,visualaid,|,removeformat",
	theme_advanced_buttons4 : "insertimage,image,|,insertfile,media,pastecode,cleanhtml,code",
	content_css : "/lib/tinymce/init/CSS.asp?p=" + (("navbanners" == dbL["page"])?"black":"homeside") + "&tid=" + tid.getTime()
});

// Standard Text area
tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	editor_selector : "editorHelpTopic",
	plugins : "style,table,save,advimage,advlink,iespell,inlinepopups,media,contextmenu,paste,fullscreen,noneditable,xhtmlxtras,template,advlist,wordcount,pastecode,cleanhtml" + ((dbL["prostyletog"])?",imagemanager,filemanager":""),
	width : "420",
	height : "200",
	imagemanager_handle: 'image', 
	filemanager_handle: 'file,media',
	filemanager_insert_template : function(fo, enc) { return FileHTMLGet(fo, enc); },
	content_css : "/lib/tinymce/init/CSS.asp?p=helptopic&tid=" + tid.getTime()
});